﻿using LightweightApp.Service;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;

namespace LightweightApp.Controllers
{
    [ApiController]
    [Route("[Controller]")]
    public class BookControlller : AbpController
    {
        private readonly IBookService bookService;

        public BookControlller(IBookService service)
        {
            this.bookService = service;
        }
        [HttpGet]
        public Task<string> CreateAsync(string name)
        {
            return bookService.CreateAsync(name);
        }
    }
}
